﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace MolfMolfMolf
{
    public partial class LocationSelection : PhoneApplicationPage
    {
        public LocationSelection()
        {
            InitializeComponent();
            AutoLocate.Tap += new EventHandler<GestureEventArgs>(AutoLocate_Tap);
            ManualLocate.Tap += new EventHandler<GestureEventArgs>(ManualLocate_Tap);
            NameLocate.Tap += new EventHandler<GestureEventArgs>(NameLocate_Tap);
           
        }

        void NameLocate_Tap(object sender, GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/CourseNameSearchPage.xaml", UriKind.Relative));
        }

        void ManualLocate_Tap(object sender, GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/LocationPage.xaml", UriKind.Relative));
        }

        void AutoLocate_Tap(object sender, GestureEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MapResultPage.xaml?location=current", UriKind.Relative));
        }
    }
}